package feign.ethan.springCloud.service.jobhandler;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author Ethan
 */
@Component
public class MyXxlJob {

    @XxlJob("MySpringCloudJobHandler")
    public void test() {
        String jobParam = XxlJobHelper.getJobParam();
        System.out.println("我的spring Cloud集成 XXL-JOB" + new Date());
        System.out.println("jobParam = " + jobParam);
    }
}
